package com.zjitc.service;

import com.zjitc.common.ServerResponse;
import com.zjitc.model.User;
import javax.servlet.http.HttpSession;

/**
 * Created by Aspire on 2018/3/28.
 */
public interface UserService {
    ServerResponse login(String username, String password);
    ServerResponse register(User user);
    ServerResponse check_valid(String str, String type);
    ServerResponse get_user_info(HttpSession session);
    ServerResponse forget_get_question(String username);
    ServerResponse forget_check_answer(String username,String question,String answer);
    ServerResponse forget_reset_password(String username,String passwordNew,String forgetToken);
    ServerResponse reset_password( String passwordOld,String passwordNew,User user);
    ServerResponse update_information(User user);
    ServerResponse get_information(Integer id);
    ServerResponse logout(HttpSession session);
}
